import Layout from '@neu/biz-core/layout'
import workorder from './workorder'
import assets from './assets'
import inoutsl from './inoutsl'
import inventory from './inventory'
import standingbook from './standingbook'
import settings from './settings'
import report from './report'

export default [
  {
    path: '/',
    component: Layout,
    redirect: '/workbench',
    children: [
      {
        path: 'workbench',
        component: () => import('@neu/dcam-ui/views/workbench'),
        name: 'menu_workbench',
        meta: {
          title: '工作台',
          icon: 'workbench',
          affix: true
        }
      }
    ]
  },
  ...workorder,
  ...assets,
  ...inoutsl,
  ...inventory,
  ...standingbook,
  ...report,
  ...settings,
  {
    path: '/logs',
    name: 'dcam_logs',
    meta: {
      title: '日志管理',
      icon: 'plan',
      module: 'dcam',
      code: 'menu_dcam_logs'
    },
    component: Layout,
    redirect: 'noRedirect',
    alwaysShow: true,
    children: [
      {
        path: 'index',
        name: 'dcam_logs_index',
        meta: {
          title: '操作日志',
          icon: 'right-arrow',
          module: 'dcam',
          code: 'menu_dcam_logs_index'
        },
        component: () => import('@neu/dcam-ui/views/logs')
      }
    ]
  }
]
